var chalk = require('chalk');
const pluginName = 'AutoCompilePlugin';

class AutoCompilePlugin {
    apply(compiler) {
        // 自动编译插件主要用于代码提交
        compiler.hooks.done.tap(
            pluginName,
            (error, callback) => {
                console.log(chalk.green(`执行--->${pluginName}`));

            }
        );
    }
}

module.exports = AutoCompilePlugin;